<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11-Vue指令-v-bind</title>
</head>
<body>
    <div id="app">
        <!-- <img v-bind:src="url" v-bind:title="msg"> -->
        <!-- 简写形式 -->
        <img :src="url" :title="msg">
    </div>
    

    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                url:'./imgs/1.png',
                msg:'吾皇，你好！'
            }
        })
    </script>
</body>
</html>